package com.guqj.basis.datastruct.singlelist;

public class Node {

	protected Node next; // 下一个节点
	protected Object obj; // 数据

	public Node(Object obj) {
		this.obj = obj;
	}

	public Node(Object obj, Node next){
		this.obj = obj;
		this.next = next;
	}
	
	// 显示此节点
	public void display() {
		System.out.print(obj + " ");
	}
}
